<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;


?>
<?php $form = ActiveForm::begin([
    'action' => ['admin/updatearticle'],
    'method'=>'post',
]);?>


<?= $form->field($model, 'id')->hiddenInput()->label(false) ?>
<?= $form->field($model, 'title')->label('标题') ?>

<?= $form->field($model, 'type')->dropDownList(['随笔'=>'随笔','科普'=>'科普'])->label('类型') ?>

<?= $form->field($model, 'context')->textarea(['style'=>['height'=>'300px']])->label('正文')?>





    <div class="form-group">
        <?= Html::submitButton('提交', ['class' => 'btn btn-primary',]) ?>
        <a href="http://localhost/basic/web/index.php?r=student/login" class="btn-primary btn">返回登录</a>


    </div>

<?php ActiveForm::end(); ?>